﻿using IMeiWei.Model;
using IMeiWeiWebService.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IMeiWeiWebService.Extensions
{
    public static class areaoneExtension
    {
        public static City ToCity(this areaone record, List<Area> areas)
        {
            return new City()
            {
                CityId = record.Id,
                CityName = record.AreaOne,
                Areas = areas,
            };
        }
    }
}